package com.czl.module_storehouse.bean;

import com.czl.base.data.bean.tengyun.SortBean;

import java.util.List;

/**
 * @author by xubin,
 * @date on 2022/2/10.
 * PS: Not easy to write code, please indicate.
 */
public class InventoryBean {

    private String gmtCreate;
    private String inventoryClass;
    private String inventoryCode;
    private int inventoryId;
    private String inventoryName;
    private int inventoryRange;
    private String inventoryRangeStr;
    private int propCompanyId;
    private String propCompanyName;
    private String beginDateStr8;
    private String actBeginDate;
    private String actBeginDateStr8;
    private String actEndDateStr8;
    private String inventoryDate;
    private String inventoryDateEnd;
    private String actEndDate;
    private String endDateStr8;
    private int status;
    private int stockNum;
    private int lossesNum;
    private int surplusNum;
    private int inventoryNum;
    private String lossesValue;
    private String surplusValue;
    private Long nowDate;
    private Long beginDate;
    private List<FacilityClassBean> facilityClassList;
    private List<SortBean> sortList;

    public int getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(int inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    public Long getBeginDate() {
        return beginDate;
    }

    public Long getBeginDateLong() {
        return beginDate == null ? 0 : beginDate;
    }

    public void setBeginDate(Long beginDate) {
        this.beginDate = beginDate;
    }

    public Long getNowDate() {
        return nowDate;
    }

    public long getNowDateLong() {
        return nowDate == null ? 0 : nowDate;
    }

    public void setNowDate(Long nowDate) {
        this.nowDate = nowDate;
    }

    public void setInventoryDate(String inventoryDate) {
        this.inventoryDate = inventoryDate;
    }

    public String getInventoryDateEnd() {
        return inventoryDateEnd;
    }

    public void setInventoryDateEnd(String inventoryDateEnd) {
        this.inventoryDateEnd = inventoryDateEnd;
    }

    public String getActBeginDateStr8() {
        return actBeginDateStr8;
    }

    public void setActBeginDateStr8(String actBeginDateStr8) {
        this.actBeginDateStr8 = actBeginDateStr8;
    }

    public String getActEndDateStr8() {
        return actEndDateStr8;
    }

    public void setActEndDateStr8(String actEndDateStr8) {
        this.actEndDateStr8 = actEndDateStr8;
    }

    public String getActBeginDate() {
        return actBeginDate;
    }

    public void setActBeginDate(String actBeginDate) {
        this.actBeginDate = actBeginDate;
    }

    public String getActEndDate() {
        return actEndDate;
    }

    public void setActEndDate(String actEndDate) {
        this.actEndDate = actEndDate;
    }

    public int getLossesNum() {
        return lossesNum;
    }

    public void setLossesNum(int lossesNum) {
        this.lossesNum = lossesNum;
    }

    public int getSurplusNum() {
        return surplusNum;
    }

    public void setSurplusNum(int surplusNum) {
        this.surplusNum = surplusNum;
    }

    public String getLossesValue() {
        return lossesValue;
    }

    public void setLossesValue(String lossesValue) {
        this.lossesValue = lossesValue;
    }

    public String getSurplusValue() {
        return surplusValue;
    }

    public void setSurplusValue(String surplusValue) {
        this.surplusValue = surplusValue;
    }

    public String getEndDateStr8() {
        return endDateStr8;
    }

    public void setEndDateStr8(String endDateStr8) {
        this.endDateStr8 = endDateStr8;
    }

    public String getBeginDateStr8() {
        return beginDateStr8;
    }

    public void setBeginDateStr8(String beginDateStr8) {
        this.beginDateStr8 = beginDateStr8;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public String getInventoryDate() {
        if (status == 0) {
            return "--";
        }
        if (inventoryDate == null) {
            return "--";
        }
        if (inventoryDateEnd == null) {
            return inventoryDate;
        }
        return inventoryDate + " 到 " + inventoryDateEnd;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getInventoryClass() {
        return inventoryClass;
    }

    public void setInventoryClass(String inventoryClass) {
        this.inventoryClass = inventoryClass;
    }

    public String getInventoryCode() {
        return inventoryCode;
    }

    public String getInventoryCode(String title) {
        return title + (inventoryCode == null ? "" : inventoryCode);
    }

    public void setInventoryCode(String inventoryCode) {
        this.inventoryCode = inventoryCode;
    }

    public int getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(int inventoryId) {
        this.inventoryId = inventoryId;
    }

    public String getInventoryName() {
        return inventoryName;
    }

    public void setInventoryName(String inventoryName) {
        this.inventoryName = inventoryName;
    }

    public int getInventoryRange() {
        return inventoryRange;
    }

    public void setInventoryRange(int inventoryRange) {
        this.inventoryRange = inventoryRange;
    }

    public String getInventoryRangeStr() {
        return inventoryRangeStr;
    }

    public void setInventoryRangeStr(String inventoryRangeStr) {
        this.inventoryRangeStr = inventoryRangeStr;
    }

    public int getPropCompanyId() {
        return propCompanyId;
    }

    public void setPropCompanyId(int propCompanyId) {
        this.propCompanyId = propCompanyId;
    }

    public String getPropCompanyName() {
        return propCompanyName;
    }

    public String getPropCompanyName(String title) {
        return title + (propCompanyName == null ? "" : propCompanyName);
    }

    public void setPropCompanyName(String propCompanyName) {
        this.propCompanyName = propCompanyName;
    }

    public int getStatus() {
        return status;
    }

    public String getStatusStr() {
        switch (status) {
            case 0:
                return "未开始";
            case 1:
                return "已完成";
            default:
                return "盘点中";
        }
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStockNum() {
        return stockNum;
    }

    public void setStockNum(int stockNum) {
        this.stockNum = stockNum;
    }

    public List<FacilityClassBean> getFacilityClassList() {
        return facilityClassList;
    }

    public void setFacilityClassList(List<FacilityClassBean> facilityClassList) {
        this.facilityClassList = facilityClassList;
    }

    public List<SortBean> getSortList() {
        return sortList;
    }

    public void setSortList(List<SortBean> sortList) {
        this.sortList = sortList;
    }

}
